import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

const comfirmInfomation = () => import('@/pages/comfirm_infomation.vue')
const dormList = () => import('@/pages/dorm_list.vue')
const bedsChoose = () => import('@/pages/beds_choose.vue')
const eleRegisterForm = () => import('@/pages/ele_register_form.vue')

let routes = [
    {
        path: '/',
        redirect: '/comfirm_infomation'
    },
    {
        path: '/comfirm_infomation',
        name: 'comfirm_infomation',
        component: comfirmInfomation
    },
    {
        path: '/beds_choose',
        name: 'beds_choose',
        component: bedsChoose
    },
    {
        path: '/dorm_list',
        name: 'dorm_list',
        component: dormList
    },
    {
        path: '/ele_register_form',
        name: 'ele_register_form',
        component: eleRegisterForm
    }
]

export default new Router({
    routes
})
